package com.google.android.exoplayer2.upstream;

import androidx.annotation.Nullable;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import o.alj;
import o.alr;
import o.alv;
import o.ang;

public interface HttpDataSource extends alj {
    public static final ang<String> ˏ = alv.ˏ;

    public static class HttpDataSourceException extends IOException {
        public final int ˎ;
        public final DataSpec ˏ;

        public HttpDataSourceException(String str, DataSpec dataSpec, int i) {
            super(str);
            this.ˏ = dataSpec;
            this.ˎ = i;
        }

        public HttpDataSourceException(IOException iOException, DataSpec dataSpec, int i) {
            super(iOException);
            this.ˏ = dataSpec;
            this.ˎ = i;
        }

        public HttpDataSourceException(String str, IOException iOException, DataSpec dataSpec, int i) {
            super(str, iOException);
            this.ˏ = dataSpec;
            this.ˎ = i;
        }
    }

    public static final class InvalidContentTypeException extends HttpDataSourceException {
        public final String ˋ;

        public InvalidContentTypeException(String str, DataSpec dataSpec) {
            super("Invalid content type: " + str, dataSpec, 1);
            this.ˋ = str;
        }
    }

    public static final class InvalidResponseCodeException extends HttpDataSourceException {
        public final int ˊ;
        @Nullable
        public final String ˋ;
        public final Map<String, List<String>> ॱ;

        public InvalidResponseCodeException(int i, @Nullable String str, Map<String, List<String>> map, DataSpec dataSpec) {
            super("Response code: " + i, dataSpec, 1);
            this.ˊ = i;
            this.ˋ = str;
            this.ॱ = map;
        }
    }

    public static abstract class b implements alr {
        private final d ˎ = new d();

        protected abstract HttpDataSource ˏ(d dVar);

        public /* synthetic */ alj ˎ() {
            return ˋ();
        }

        public final HttpDataSource ˋ() {
            return ˏ(this.ˎ);
        }
    }

    public static final class d {
        private Map<String, String> ˎ;
        private final Map<String, String> ॱ = new HashMap();

        public synchronized Map<String, String> ˊ() {
            if (this.ˎ == null) {
                this.ˎ = Collections.unmodifiableMap(new HashMap(this.ॱ));
            }
            return this.ˎ;
        }
    }
}
